CREATE TABLE [dbo].[CustomerLoans](
	[LoanID] [uniqueidentifier] NOT NULL,
	[LoanNumber] [int] NOT NULL,
	[CustomerID] [uniqueidentifier] NOT NULL,
	[GuarantorID] [uniqueidentifier] NULL,
	[ProjectStageID] [uniqueidentifier] NOT NULL,
	[CommitteeID] [uniqueidentifier] NOT NULL,
	[LoanName] [nvarchar](50) NOT NULL,
	[LoanAddress] [nvarchar](max) NULL,
	[LoanPlaceTypeID] [uniqueidentifier] NOT NULL,
	[LoanAmount] [float] NOT NULL,
	[LoanPaymentPeriod] [int] NOT NULL,
	[FamilyCurrentDebts] [nvarchar](max) NULL,
	[LegalFormID] [uniqueidentifier] NOT NULL,
	[LoanCreatedDate] [datetime] NOT NULL,
	[ReceiptID] [uniqueidentifier] NULL,
	[LoanTypeID] [uniqueidentifier] NOT NULL,
	[RelationWithManagers] [nvarchar](max) NULL,
	[LoanPaymentMethodID] [uniqueidentifier] NOT NULL,
	[ResponsibleID] [uniqueidentifier] NOT NULL,
	[IsLoanProjectExist] [bit] NOT NULL,
 CONSTRAINT [PK_CustomerLoans] PRIMARY KEY CLUSTERED 
(
	[LoanID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]






  

